package com.ysy.logistics.service.system;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ysy.common.resp.ResultData;
import com.ysy.logistics.entities.system.Dict;
import com.ysy.logistics.entities.system.dto.DictDto;

import java.util.List;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/12 14:42
 **/
public interface DictService extends IService<Dict> {

    List<DictDto> findByNameLike(String name);

    List<DictDto> findByPid(long pid);

    ResultData addDict(DictDto dict);

    ResultData update(DictDto dict);

    List<DictDto> getDictsByPname(String dictName);
}
